import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/Login'
import Index from '@/views/Index'
import User from  "@/views/user/User"
import SysUserM from "@/views/user/SysUserM"
import SysRoleM from "@/views/user/SysRoleM"
import SysDictType from "@/views/user/SysDictType"
import SysDictData from "@/views/user/SysDictData"
import SysMenu from  "@/views/user/SysMenu"
import ProjectM from "@/views/project/ProjectM"
import ProjectT from "@/views/project/ProjectType"
import ProductList from "@/views/product/ProductList"
import ProductType from  "@/views/product/ProductType"
import ServerPoint from "@/views/product/ServerPoint"
import LabelList from "@/views/product/LabelList"
import OrderPage from "@/views/order/OrderPage"
import OrderCancel from "@/views/order/OrderCancel"
import HospitalList from  "@/views/hospital/HospitalList"
import UserInfo from  "@/views/patient/UserInfo"
import TestCenter from  "@/views/testCenter/TestCenter"
import SysLog from "@/views/log/SysLog"
import SpecimenList from "@/views/specimen/SpecimenList"
import MsgRecord from "@/views/msg/MsgRecord"
import ReportExplain from "@/views/report/ReportExplain"
import PhysicalExamination from "@/views/check/PhysicalExamination"

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/index',
      name: 'Index',
      component: Index,
      children:[
        {
          path: '/home',
          name: 'User',
          component: User,
        },
        {
          path: '/user/querySysUserListByPage',
          name: 'SysUserM',
          component: SysUserM,
        },
        {
          path: '/role/querySysRoleListByPage',
          name: 'SysRoleM',
          component: SysRoleM,
        },
        {
          path: '/dictType/querySysDictTypeListByPage',
          name: 'SysDictType',
          component: SysDictType,
        },
        {
          path: '/dictData/querySysDictDataListByPage',
          name: 'SysDictData',
          component: SysDictData,
        },
        {
          path: '/menu/querySysMenuListByPage',
          name: 'SysMenu',
          component: SysMenu,
        },
        {
          path: '/project/selectProjectList',
          name: 'ProjectM',
          component: ProjectM,
        },
        {
          path: '/projectType/selectBusProjectTypeListByPage',
          name: 'ProjectT',
          component: ProjectT,
        },
        {
          path: '/product/selectProductList',
          name: 'ProductList',
          component: ProductList,
        },
        {
          path: '/product/serverList',
          name: 'ServerPoint',
          component: ServerPoint,
        },
        {
          path: '/label/selectProductLabelList',
          name: 'LabelList',
          component: LabelList,
        },

        {
          path: '/productType/selectProductTypePage',
          name: 'ProductType',
          component: ProductType,
        },
        {
          path: '/order/selectOrderPage',
          name: 'OrderPage',
          component: OrderPage,
        },
        {
          path: '/orderCancel/selectOrderCancelPage',
          name: 'OrderCancel',
          component: OrderCancel,
        },
        {
          path: '/hospital/queryBusHospitalListByPage',
          name: 'HospitalList',
          component: HospitalList,
        },
        {
          path: '/userInfo/queryBusUserInfoListByPage',
          name: 'UserInfo',
          component: UserInfo,
        },
        {
          path: '/testCenter/queryBusTestcenterListByPage',
          name: 'TestCenter',
          component: TestCenter,
        },
        {
          path: '/log/querySysLogListByPage',
          name: 'SysLog',
          component: SysLog,
        },
        {
          path: '/specimen/queryBusSpecimenListByPage',
          name: 'SpecimenList',
          component: SpecimenList,
        },
        {
          path: '/msg/queryBusMsgRecordListByPage',
          name: 'MsgRecord',
          component: MsgRecord,
        },
        {
          path: '/repotexplain/selectRepotExplainList',
          name: 'ReportExplain',
          component: ReportExplain,
        },
        {
          path: '/meal/getSetMeal',
          name: 'PhysicalExamination',
          component: PhysicalExamination,
        }
      ]
    },

  ]
})
